//
//  CCamera.h
//  Mario_project
//
//  Created by Vincent Descreux on 23/05/13.
//  Copyright (c) 2013 Vincent Descreux. All rights reserved.
//

#ifndef __Mario_project__CCamera__
#define __Mario_project__CCamera__

#include <iostream>
#include <SDL/SDL.h>
#include "Define.h"



enum {
    TARGET_MODE_NORMAL = 0,
    TARGET_MODE_CENTER
};

class CCamera {
public:
    static CCamera CameraControl;
    
private:
    int X;
    int Y;
    
    float* TargetX;
    float* TargetY;
    
public:
    int TargetMode;
    
public:
    CCamera();
    
public:
    void OnMove(float MoveX, float MoveY);
    
public:
    int GetX();
    int GetY();
    
public:
    void SetPos(int X, int Y);
    
    void SetTarget(float* X, float* Y);
};

#endif